package com.tangguangdi.base.db.generator.entity;


import com.tangguangdi.base.common.db.FieldType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 表格竖列
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TableField {

    private static final long serialVersionUID = 1L;

    /**
     * 字段注释
     */
    private String comment;

    /**
     * 字段名称
     */
    private String name;
    /**
     * 字段名称
     */
    private String propertyName;
    /**
     * 字段类型
     */
    private FieldType type;
    /**
     * 是否主键
     */
    private Boolean primaryKey;
}
